package com.tiancheng.trade.settlement.mapper.settlement;

import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.model.settlement.BankrollClearingData;
import com.tiancheng.trade.settlement.vo.settlement.admin.SelfSupportSettlementResultThreeVO;
import com.tiancheng.trade.settlement.vo.settlement.admin.SelfSupportSettlementVO;
import com.tiancheng.trade.settlement.vo.settlement.export.NoSettlementOrderExportVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 自营资金清算报表,核销数据
 * 此类为[代码工厂]自动生成，继承了JpaRepository类，已经拥有基本的增删改成操作
 * <其他请自行扩展>
 *
 * @time 2024-05-26 16:21
 * @GeneratedByCodeFactory
 */
@Repository
public interface BankrollClearingDataMapper extends TYBaseMapper<BankrollClearingData> {

    /**
     * 查询报表第三块内容
     *
     * @param vo
     * @return
     */
    List<SelfSupportSettlementResultThreeVO> reportFormThree(SelfSupportSettlementVO vo);

    /**
     * 批量保存
     *
     * @param datas
     * @return
     */
    int batchSave(List<BankrollClearingData> datas);

    /**
     * 修改
     *
     * @param data
     * @return
     */
    int update(BankrollClearingData data);

    /**
     * 未清算金额订单明细查询
     *
     * @param vo
     * @return
     */
    List<NoSettlementOrderExportVO> noSettlementOrderExport(SelfSupportSettlementVO vo);
}